home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
-archivi
/
-recent2
/
ggdebug.lha
/
test.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-03-11
|
717b
|
36 lines
#include <proto/exec.h>
#include <proto/ggdebug.h>
#include <proto/dos.h>
struct Library *GGDebugBase;
void main(void)
{
if(GGDebugBase=OpenLibrary("ggdebug.library",0L))
{
LONG args[3],i;
PutStr("This small program tests ggdebug.library, you need\nsushi/sashimi or a serial terminal to see the output.\n");
KPrintf("KPrintf test: %s %s %ld %s\n","ciao", "come", 11, "va?");
KPutStr("KPutStr test...\n");
args[0]=(LONG) "Ciao!";
args[1]=1234;
args[2]=NULL;
VKPrintf("VKPrintf test: %s %ld\nKPutChar test: ",args);
for(i=0;i<5;i++)
{
KPutChar('a'+i);
}
KPutStr("\n");
PutStr("Test completed.\n");
CloseLibrary(GGDebugBase);
}
else PutStr("Unable to open the library!\n");
}